/*
 * @Author: jiangh1 1141429595@qq.com
 * @Date: 2023-05-19 17:24:12
 * @LastEditors: jiangh1 1141429595@qq.com
 * @LastEditTime: 2023-07-14 13:35:09
 * @FilePath: \react-js-demo\src\pages\home\index.jsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import React, { Component } from "react";

import api from '../../apis';

import './index.less';

export default class App extends Component {
    state = {
        data: []
    }
    componentDidMount() {
        this.getList();
    }
    getList = async () => {
        let data = {
            mobile: 13275519001,
        }
        const res = await api.rand(data);
        if (res.code) {
            this.setState({
                data: res.data.data
            })
        }
    }

    render() {
        return (
            <div className="title">
                首页
                <div className="ceshi">
                    测试
                </div>
            </div>
        )
    }
}